VERSION 5.00
Object = "{1292FDC1-6231-407E-A10D-F419BBFDA432}#2.0#0"; "XPOCX.ocx"
Begin VB.Form frmCxCEstadoCuentaObservaciones 
   BackColor       =   &H00C26B1D&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Observaciones"
   ClientHeight    =   5625
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   7245
   ClipControls    =   0   'False
   ControlBox      =   0   'False
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5625
   ScaleWidth      =   7245
   StartUpPosition =   2  'CenterScreen
   Begin xpOcx.XPButton xpEditar 
      Height          =   285
      Left            =   45
      TabIndex        =   1
      Top             =   5265
      Width           =   1725
      _ExtentX        =   3043
      _ExtentY        =   503
      State           =   2
      Enabled         =   0   'False
      Caption         =   "Editar observaciones"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin VB.TextBox txtObservaciones 
      Appearance      =   0  'Flat
      BackColor       =   &H00C0FFFF&
      BorderStyle     =   0  'None
      BeginProperty Font 
         Name            =   "Verdana"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00000080&
      Height          =   4830
      Left            =   0
      Locked          =   -1  'True
      MaxLength       =   2000
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   0
      Top             =   360
      Width           =   7260
   End
   Begin xpOcx.XPButton xpCerrar 
      Height          =   285
      Left            =   1845
      TabIndex        =   2
      Top             =   5265
      Width           =   1275
      _ExtentX        =   2249
      _ExtentY        =   503
      Caption         =   "Cerrar <ESC>"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      BackStyle       =   0  'Transparent
      Caption         =   "Observaciones..."
      BeginProperty Font 
         Name            =   "Verdana"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFFFFF&
      Height          =   195
      Left            =   90
      TabIndex        =   3
      Top             =   90
      Width           =   7080
   End
End
Attribute VB_Name = "frmCxCEstadoCuentaObservaciones"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = 27 Then
        Unload frmCxCEstadoCuentaObservaciones
    End If
End Sub
Private Sub xpCerrar_Click()
    Unload frmCxCEstadoCuentaObservaciones
End Sub
Private Sub xpEditar_Click()
    If xpEditar.Caption = "Editar observaciones" Then
        txtObservaciones.Locked = False
        txtObservaciones.BackColor = &HFFFFFF
        xpEditar.Caption = "Grabar observaciones"
        txtObservaciones.SelStart = Len(txtObservaciones)
        txtObservaciones.SetFocus
    Else
        gCnCXC.Execute "update SAFC_VENTAS.dbo.venEncabezado_Ventas " _
            & "set Observaciones = '" & Trim(txtObservaciones) & "' " _
            & "where rtrim(Codigo_Contrato)='" & frmCxCEstadoCuenta.txtEdoCta & "'"
        Unload frmCxCEstadoCuentaObservaciones
    End If
End Sub
